package com.bmps.springcloud.insuredmicroservice.model.trail.request;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

import java.io.Serializable;

/**
 * @Author :  zlc
 * @Date : 2019/9/10 10:48
 **/
public class TrailCustInfoModel implements Serializable {

    private TrailAppntModel appnt;

    private TrailInsurantsModel insurants;

    public TrailAppntModel getAppnt() {
        return appnt;
    }

    public void setAppnt(TrailAppntModel appnt) {
        this.appnt = appnt;
    }

    public TrailInsurantsModel getInsurants() {
        return insurants;
    }

    public void setInsurants(TrailInsurantsModel insurants) {
        this.insurants = insurants;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {return true;}

        if (o == null || getClass() != o.getClass()) {return false;}

        TrailCustInfoModel that = (TrailCustInfoModel) o;

        return new EqualsBuilder()
                .append(appnt, that.appnt)
                .append(insurants, that.insurants)
                .isEquals();
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder(17, 37)
                .append(appnt)
                .append(insurants)
                .toHashCode();
    }

    @Override
    public String toString() {
        return "TrailCustInfoModel{" +
                "appnt=" + appnt +
                ", insurants=" + insurants +
                '}';
    }
}
